package com.ruoyi.keno.task;


import com.ruoyi.keno.enums.AreaEnums;
import com.ruoyi.keno.service.IKenoGuessService;
import com.ruoyi.keno.service.IKenoHistoryService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@Component("keno")
public class KenoAcquisition  {

	@Resource
	private IKenoHistoryService kenoHistoryService;

	@Resource
	private IKenoGuessService kenoGuessService;


	public  void canadaAcquistion(){
        for (AreaEnums areaEnums : AreaEnums.values()) {
            kenoHistoryService.getDataAcquisition(areaEnums.getCityCode());
        }

	}

	public  void setGuessResult(){
		kenoGuessService.guessResult();
	}





}
